const { Buffer } = require('node:buffer');
const buf = Buffer.from([1, 2, 3]);
for (const b of buf) {
  console.log(b);
}
// Prints:
//   1
//   2
//   3
